/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * mainMenu.java
 *
 * Created on Nov 27, 2011, 7:39:41 PM
 */
package readerservices;

/**
 *
 * @author nb
 */
public class mainMenu extends javax.swing.JFrame {

    /** Creates new form mainMenu */
    public mainMenu() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        issuerenewjButton = new javax.swing.JButton();
        searchjButton = new javax.swing.JButton();
        dischargejButton = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        issuerenewjMenu = new javax.swing.JMenu();
        issuerenewjMenuItem = new javax.swing.JMenuItem();
        dischargejMenuItem = new javax.swing.JMenuItem();
        searchjMenuItem = new javax.swing.JMenuItem();
        exitjMenuItem = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel1.setText("Reader Services");

        issuerenewjButton.setText("Issue/Renw");
        issuerenewjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                issuerenewjButtonActionPerformed(evt);
            }
        });

        searchjButton.setText("Search");
        searchjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchjButtonActionPerformed(evt);
            }
        });

        dischargejButton.setText("Discharge");
        dischargejButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dischargejButtonActionPerformed(evt);
            }
        });

        issuerenewjMenu.setText("Options");

        issuerenewjMenuItem.setText("Issue/Renew");
        issuerenewjMenuItem.setActionCommand("Issue/Renew");
        issuerenewjMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                issuerenewjMenuItemActionPerformed(evt);
            }
        });
        issuerenewjMenu.add(issuerenewjMenuItem);

        dischargejMenuItem.setText("Discharge");
        dischargejMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dischargejMenuItemActionPerformed(evt);
            }
        });
        issuerenewjMenu.add(dischargejMenuItem);

        searchjMenuItem.setText("Search");
        searchjMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchjMenuItemActionPerformed(evt);
            }
        });
        issuerenewjMenu.add(searchjMenuItem);

        exitjMenuItem.setText("Exit");
        exitjMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitjMenuItemActionPerformed(evt);
            }
        });
        issuerenewjMenu.add(exitjMenuItem);

        jMenuBar1.add(issuerenewjMenu);

        jMenu2.setText("Help");

        jMenuItem4.setText("About");
        jMenu2.add(jMenuItem4);

        jMenuItem5.setText("Credits");
        jMenu2.add(jMenuItem5);

        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(37, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(searchjButton, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(47, 47, 47)
                        .addComponent(issuerenewjButton)
                        .addGap(48, 48, 48)
                        .addComponent(dischargejButton)
                        .addGap(26, 26, 26))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(126, 126, 126))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(searchjButton)
                    .addComponent(dischargejButton)
                    .addComponent(issuerenewjButton))
                .addGap(36, 36, 36))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void exitjMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitjMenuItemActionPerformed
System.exit(0);
}//GEN-LAST:event_exitjMenuItemActionPerformed

private void searchjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchjButtonActionPerformed
// TODO add your handling code here:
    searchMain app=new searchMain();
    app.setDefaultCloseOperation(WIDTH);
    app.setVisible(true);
}//GEN-LAST:event_searchjButtonActionPerformed

private void issuerenewjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_issuerenewjButtonActionPerformed
// TODO add your handling code here:
  issueRenew app1=new issueRenew();
  app1.setDefaultCloseOperation(WIDTH);
  app1.setVisible(true);
  
}//GEN-LAST:event_issuerenewjButtonActionPerformed

private void dischargejButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dischargejButtonActionPerformed
// TODO add your handling code here:
    dischargeMain app2=new dischargeMain();
    app2.setDefaultCloseOperation(WIDTH);
    app2.setVisible(true);
    
}//GEN-LAST:event_dischargejButtonActionPerformed

private void issuerenewjMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_issuerenewjMenuItemActionPerformed
// TODO add your handling code here:
      issueRenew app3=new issueRenew();
      app3.setDefaultCloseOperation(WIDTH);
  app3.setVisible(true);
}//GEN-LAST:event_issuerenewjMenuItemActionPerformed

private void dischargejMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dischargejMenuItemActionPerformed
// TODO add your handling code here:
        dischargeMain app4=new dischargeMain();
        app4.setDefaultCloseOperation(WIDTH);
    app4.setVisible(true);
}//GEN-LAST:event_dischargejMenuItemActionPerformed

private void searchjMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchjMenuItemActionPerformed
// TODO add your handling code here:
    searchMain app5=new searchMain();
    app5.setDefaultCloseOperation(WIDTH);
    app5.setVisible(true);
}//GEN-LAST:event_searchjMenuItemActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(mainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(mainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(mainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(mainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new mainMenu().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton dischargejButton;
    private javax.swing.JMenuItem dischargejMenuItem;
    private javax.swing.JMenuItem exitjMenuItem;
    private javax.swing.JButton issuerenewjButton;
    private javax.swing.JMenu issuerenewjMenu;
    private javax.swing.JMenuItem issuerenewjMenuItem;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JButton searchjButton;
    private javax.swing.JMenuItem searchjMenuItem;
    // End of variables declaration//GEN-END:variables
}
